// const Router = require("koa-router");
import Router from "koa-router"
import common from '../common.js'


let admin = new Router()

admin.use(common.backStruct);//设置路由返回数据格式

admin.use(common.checkToken);//需要登录的路由放在此路由后面

admin.get("/", async ctx => {
    return ["已登陆", 0, ctx.user]
});

export default admin